<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:sec="http://www.springframework.org/security/tags"
	xmlns:pt="http://xmlns.jcp.org/jsf/passthrough">
<f:metadata>
	<f:event listener="#"
		type="preRenderView" />
</f:metadata>
<body>
	<ui:composition template="/pages/templates/layout.xhtml">
		<ui:define name="title_page">#{language['application.name']} - Home</ui:define>
		<ui:define name="list_menu">

			<li class="active">
			
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" 
					   data-hover="dropdown" data-close-others="true">
						<h:commandLink value="Home" class="dropdown-toggle" 
									   data-toggle="dropdown" data-hover="dropdown" 
									   data-close-others="true" 
									   action="#" />
					</a>
				</li>				
			</li>
			<sec:authorize ifAnyGranted="ROLE_ADMINISTRADOR, ROLE_ASSISTENTE">
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" 
					   data-hover="dropdown" data-close-others="true">
					   	<h:commandLink value="Usuários"  action="#{MBeanManterUsuario.actionCarregarFiltro}"/>
					</a>
				</li>
					
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" 
					   data-hover="dropdown" data-close-others="true">
						<h:commandLink value="Temas"  action="#{MBeanManterTema.actionCarregarFiltro}"/>
					</a>
				</li>
				
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" 
					   data-hover="dropdown" data-close-others="true">
						<h:commandLink value="Questões"  action="#{MBeanManterQuestao.actionCarregarFiltro}"/>
					</a>
				</li>
			</sec:authorize>
			<sec:authorize ifAnyGranted="ROLE_PROFESSOR">					
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" 
					   data-hover="dropdown" data-close-others="true">
						<h:commandLink value="Temas"  action="#{MBeanManterTema.actionCarregarFiltro}"/>
					</a>
				</li>
				
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" 
					   data-hover="dropdown" data-close-others="true">
						<h:commandLink value="Questões"  action="#{MBeanManterQuestao.actionCarregarFiltro}"/>
					</a>
				</li>
			</sec:authorize>			
		</ui:define>
		<ui:define name="sub_header">
			<div class="pg-opt pin">
				<div class="container">
					<div class="row">
						<div class="col-md-6">
							<h2>
								<ui:insert name="title"></ui:insert>
							</h2>
						</div>
						<div class="col-md-6">
							<ol class="breadcrumb">
								<ui:insert name="list_link">

								</ui:insert>
							</ol>
						</div>
					</div>
				</div>
			</div>
		</ui:define>
	</ui:composition>
</body>
</html>